﻿using System;
using System.Threading;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;

namespace Linker.TaskCenter.Controllers
{
    [ApiController]
    [Route("api/[controller]")]
    public class TestController : AbpController
    {
        /// <summary>
        ///     test
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        [Route("")]
        public ActionResult Test()
        {
            // 模拟执行
            Thread.Sleep(3 * 1000);
            return new JsonResult(new
            {
                code = 200,
                data = $"hi {DateTime.Now}",
                message = "success"
            });
        }
    }
}